package cn.iocoder.yudao.module.reading.controller.app.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotEmpty;

/**
 * 绘本阅读 APP - 用户登录 Request VO
 *
 * @author 李晨
 */
@Schema(description = "绘本阅读 APP - 用户登录 Request VO")
@Data
public class ReadingLoginReqVO {

    @Schema(description = "用户名或手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "testuser")
    @NotEmpty(message = "用户名或手机号不能为空")
    private String username;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6, max = 20, message = "密码长度为 6-20 位")
    private String password;

}
